package com.hxd.mall.constant

import com.hxd.mall.BuildConfig

/**
 *  定义网络请求
 */
object HxdConstantsNet {

    // server domain
    var HOST_URL_ONLINE = BuildConfig.baseUrl

    //隐私协议
    const val userPrivacyAgreementUrl = "http://www.hxvc.com/privacy.html"
    //用户注册协议
    const val userAgreementUrl = "http://www.hxvc.com/agreement.html"
    //服务协议
    const val userServiceAgreementUrl = "https://www.hxvc.com/service.html"

    /**
     * 响应码
     *
     * 200、204: 成功

     * 400：错误的json请求体
     * 401：登录令牌失效
     * 422：请求参数无效
     * 429：请求频繁或其他
     */
    const val Http_Code_400 = 400
    const val Http_Code_9003 = 9003
    const val Http_Code_403 = 403
    const val Http_Code_404 = 404
    const val Http_Code_405 = 405
    const val Http_Code_413 = 413
    const val Http_Code_414 = 414
    const val Http_Code_415 = 415
    const val Http_Code_433 = 433
    const val Http_Code_500 = 500
    const val Http_Code_501 = 501
    const val Http_Code_503 = 503
    const val Http_Code_10000 = 10000

    const val Risk_Net_Type_No = 0
    const val Risk_Net_Type_Wifi = 1
    const val Risk_Net_Type_Mobile = 2
}